<script setup lang="ts">
defineProps({
  title: {
    type: String,
    default: '标题'
  }
})
</script>
<template>
  <div class="custom-title">
    <slot name="icon">
      <icon-title></icon-title>
    </slot>
    <h3 class="title-v3">{{ title }}</h3>
  </div>
</template>
<style scoped lang="less">
.custom-title {
  color: var(--primary-color);
  display: flex;
  align-items: center;
  .icon {
    width: 14px;
    height: 14px;
    font-weight: 700;
  }
  h3.title-v3 {
    letter-spacing: 1px;
    font-size: 14px !important;
    color: var(--text-sub-color);
    font-size: var(--ft-hos-title);
    margin-left: 10px;
  }
}
</style>
